package com.secsbrain.development.dal.config;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.core.env.Environment;

@Configuration
@EnableDiscoveryClient
@Import(FeignRequestInterceptor.class)
public class ConsumerAutoConfiguration {

    @Bean
    public FeignRequestInterceptor feignRequestInterceptor(Environment environment) {
        return new FeignRequestInterceptor(environment);
    }

}
